package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.domain.SuccessCode;
import com.atguigu.jxc.entity.PurchaseList;

import java.util.Map;

/**
 * @Author: dongdong lau
 * @CreateTime: 2021/7/23 11:34
 * @Description: 进货单保存接口
 */
public interface PurchaseService {

    /**
     * 新增进货单
     * @param purchaseList
     * @param purchaseListGoodsStr
     * @return
     */
    ServiceVO save(PurchaseList purchaseList, String purchaseListGoodsStr);

    /**
     * 进货单列表展示
     * @param purchaseNumber 单据号
     * @param supplierId 供应商id
     * @param state 支付状态
     * @param sTime 起始时间
     * @param eTime 结束时间
     * @return
     */
    public Map<String, Object> list(String purchaseNumber,
                                    Integer supplierId,
                                    Integer state,
                                    String sTime,
                                    String eTime);

    /**
     * 查询商品信息
     * @param purchaseListId
     * @return
     */
    public Map<String, Object> getPurchaseListGoodsById(Integer purchaseListId);

    /**
     * 根据purchaseListId删除进货单信息
     * @param purchaseListId
     * @return
     */
    ServiceVO<SuccessCode> deletePurchaseListById(Integer purchaseListId);
}
